<div class="layui-fluid" lay-title="首页">
    <div class="layui-col-lg">
      <div class="layui-card">
        <div class="layui-card-header">版本信息</div>
        <div class="layui-card-body">
          <table class="layui-table">
            <colgroup>
              <col width="100" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>封尘博客</td>
                <td>V3.0.0</td>
              </tr>
              <tr>
                <td>作者博客</td>
                <td><a target="_blank" href="https://lovefc.cn">lovefc.cn</a></td>
              </tr>			  
              <tr>
                <td>基于框架</td>
                <td><a target="_blank" href="http://gitee.com/lovefc/fcphp6">fcphp6-php框架</a></td>
              </tr>
              <tr>
                <td>下载源码</td>
                <td style="padding-bottom: 0;">
                  <div class="layui-btn-container">
                    <a
                      href="https://github.com/fanjyy/nep-admin"
                      target="_blank"
                      class="layui-btn layui-btn-danger"
                      >GITHUB</a
                    >
                    <a
                      href="https://gitee.com/june000/nep-admin"
                      target="_blank"
                      class="layui-btn layui-btn-success"
                      >GITEE</a
                    >
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="layui-card">
        <div class="layui-card-header">系统信息</div>
        <div class="layui-card-body" id="serverinfo">
        </div>
      </div>
</div>
<script type="text/html" id="s_serverinfo">
    {{#  layui.each(d, function(index, item){ }}
		<p>{{ index }}：{{ item }}</p><hr />
    {{#  }); }}
</script>
<script>
	layui.use(['admin', 'table', 'form', 'dropdown', 'jquery', 'laytpl'], function(admin, table, form, dropdown, $,
		laytpl) {
		admin.get({
			url: layui.api.serverInfo + 'getInfo',
			async: false,
			success: function(result) {
				let getTpl = document.getElementById('s_serverinfo').innerHTML,
					ciddom = document.getElementById('serverinfo');
				laytpl(getTpl).render(result.data, function(html) {
					ciddom.innerHTML = html;
				})
			}
		});
	});
</script>
